<?php
/**
 * Created by PhpStorm.
 * User: lhl
 * Date: 2020/11/26
 * Time: 10:12
 */

namespace app\adminapiv3\controller;


use think\Request;

class MenuController extends BaseController
{
    /**
     * 菜单查询
     */
    public function index()
    {
        $userId = $this->getLoginUserId();
        $userInfo = model('ServerUserGroupMapping')->getRbacByUserId($userId);
        $data = $userInfo['rbac']['menu'];
        return $this->jsonOutPut($data);
    }
}